package com.meyou.javascript.rewriter;

public class RewriteToken {

	public static final char SEMI = ';', 
							COLON = ':',
							NEWLINE = '\n',
							SPACE = ' ',
							OPEN_PAREN = '(',
							CLOSE_PAREN = ')',
							OPEN_BRACE = '{',
							CLOSE_BRACE = '}',
							ADD = '+',
							SUB = '-',
							MUL = '*',
							DIV = '/',
							MOD = '%',
							BITAND = '&',
							BITNOT = '~',
							BITOR = '|',
							BITXOR = '^',
							COMMA = ',',
							COND = '?',
							DOT = '.';
	
	public static final String TAB_SPACE = "    ", //4 spaces;
								FUNCTION = "function",
								FOR = "for",
								FOREACH = "each",
								IN = "in",
								IF = "if",
								ELSE = "else",
								RETURN = "return",
								TYPES = "TYPES",
								TYPE_ID = "typeId",
								DELETE = "delete",
								RUN = "run",
								THIS = "this",
								THAT = "that",
								TRUE = "true",
								FALSE = "false",
								REGISTER_TYPE = "registerType",
								INC = "++",
								LSH = "<<",
								RSH = ">>",
								URSH = ">>>",
								ASSIGN = "=",
								ASSIGN_ADD = "+=",
								ASSIGN_SUB = "-=",
								ASSIGN_MUL = "*=",
								ASSIGN_DIV = "/=",
								ASSIGN_MOD = "%=",
								ASSIGN_BITAND = "&=",
								ASSIGN_BITOR = "||=",
								ASSIGN_BITXOR = "^=",
								ASSIGN_LSH = "<<=",
								ASSIGN_RSH = ">>=",
								ASSIGN_URSH = ">>>="
								;
}
